package cn.sxjzit.officlal.controller;


import cn.sxjzit.officlal.entity.Course;
import cn.sxjzit.officlal.service.CourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;
@Controller
@RequestMapping("/course")
public class CourseController {
    @Autowired
    CourseService c;
    @GetMapping("/list")
    public List<Course> findAll(){
        return c.findAll();
    }
}